@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="amountInfoForm">
            <div class="row">
                <input type="hidden" id="aid" value="${aid}">
                <input type="hidden" id="type" value="${type}">
                <div class="col-sm-6 b-r">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地区</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" value="${locationName}" readonly="readonly">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">部门</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" value="${deptname}" readonly="readonly">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-12">
                <table class="table table-bordered" id="para_table">
                    <tr>
                        <th style="text-align:center">科目</th>
                        <th style="text-align:center">项目名称</th>
                        <th style="text-align:center">采购内容</th>
                        <th style="text-align:center">单价</th>
                        <th style="text-align:center">数量</th>
                        <th style="text-align:center">预算金额</th>
                        <th style="text-align:center">实际发生金额</th>
                        <th style="text-align:center">预算执行率(%)</th>
                        <th style="text-align:center">资金使用用途说明及核算标准</th>
                        <th style="text-align:center">副总审核金额</th>
                        <th style="text-align:center">总经理终审金额</th>
                    </tr>
                    @for(var i=0;i<fundApplys.~size;i++){
                    <tr id="${i}">
                        <input type="hidden" id="id" value="${fundApplys[i].id}">
                        <td title='${fundApplys[i].subjectname}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">${fundApplys[i].subjectname}</td>
                        <td title='${fundApplys[i].projectname}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">${fundApplys[i].projectname}</td>
                        <td title='${fundApplys[i].purchaseitem}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">${fundApplys[i].purchaseitem}</td>
                        <td title='${fundApplys[i].unitprice}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">${fundApplys[i].unitprice}</td>
                        <td title='${fundApplys[i].num}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">${fundApplys[i].num}</td>
                        <td title='${fundApplys[i].totalfee}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            ${fundApplys[i].totalfee}
                            <input type="hidden" id="totalfee" name="totalfee${i}" value="${fundApplys[i].totalfee}">
                        </td>
                        <td title='${fundApplys[i].actualfee}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <input class="form-control" id="actualfee" name="actualfee${i}" type="text" onblur="FundAmountInfoDlg.countRatio(this);return false;" value="${fundApplys[i].actualfee}">
                                </div>
                            </div>
                        </td>
                        <td title='${fundApplys[i].ratio}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <input class="form-control" id="ratio" name="ratio${i}" type="text" readonly="readonly" value="${fundApplys[i].ratio}">
                                </div>
                            </div>
                        </td>
                        <td title='${fundApplys[i].description}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            ${fundApplys[i].description}
                        </td>
                        <td title='${fundApplys[i].subapprovefee}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            ${fundApplys[i].subapprovefee}
                        </td>
                        <td title='${fundApplys[i].approvefee}' class="col-md-6" style="vertical-align: middle !important;text-align: center;">
                            ${fundApplys[i].approvefee}
                        </td>
                    </tr>
                    @}
                </table>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="修改" id="ensure" icon="fa-check" clickFun="FundAmountInfoDlg.update()"/>
                    <#button btnCss="danger" name="关闭" id="cancel" icon="fa-eraser" clickFun="FundAmountInfoDlg.goBack()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/biz/apply/budget/amount/fundAmount_info.js"></script>
@}
